
//------------------------------------------------------------------------------

using Apps.Models;
using System;
using System.ComponentModel.DataAnnotations;
namespace Apps.Models.PUB
{

	public partial class PUB_DEVICEModel:Virtual_PUB_DEVICEModel
	{
		
	}
	public class Virtual_PUB_DEVICEModel
	{
		[Display(Name = "设备编号")]
		public virtual string DEVICE_ID { get; set; }
		[Display(Name = "节点编号"),Required]
		public virtual string NODE_ID { get; set; }
		[Display(Name = "设备名称"),Required]
		public virtual string DEVICE_NAME { get; set; }
		[Display(Name = "设备型号"),Required]
		public virtual string MODEL_ID { get; set; }
		[Display(Name = "IP地址"), RegularExpression(@"((25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))\.){3}(25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))", ErrorMessage = "请输入正确格式的IP地址")]
		public virtual string IP { get; set; }
		[Display(Name = "端口"), RegularExpression(@"^\+?[1-9][0-9]*$", ErrorMessage = "端口必须为非零的正整数")]
		public virtual Nullable<int> PORT { get; set; }
		[Display(Name = "控制参数"),DataType(DataType.MultilineText)]
		public virtual string PARAMETERS { get; set; }
		[Display(Name = "网络状态")]
		public virtual Nullable<bool> NET_STATUS { get; set; }
		[Display(Name = "最新诊断")]
		public virtual Nullable<System.DateTime> NET_STATUS_TIME { get; set; }
		}
}
